:where(.css-dev-only-do-not-override-kbg4zp).ant-input-outlined:focus-within {
  border-color: #8b5a2b;
}

:where(.css-dev-only-do-not-override-kbg4zp).ant-input-outlined:hover {
  border-color: #8b5a2b;
}

/* 页面整体布局：居中+棕色系背景 */
.register-page {
  height: 100vh;
  background-color: #f9f5f0;
  background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238d6e63' fill-opacity='0.05'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 顶部图标+标题区 */
.register-header {
  text-align: center;
  margin-bottom: 20px;
}

.avatar-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(139, 90, 43, 0.08);
}

.avatar-icon {
  font-size: 24px;
  color: #8b5a2b;
}

.register-title {
  font-size: 24px;
  color: #5d4037;
  margin-bottom: 8px;
  font-weight: 600;
}

.register-desc {
  font-size: 14px;
  color: #8d6e63;
  line-height: 1.6;
}

/* 输入框区域 */
.register-form-section {
  width: 100%;
  max-width: 320px;
  margin-bottom: 20px;
}

.register-form-item {
  margin-bottom: 16px;
}

.register-form-input {
  width: 100%;
  height: 44px;
  padding: 0 15px;
  border: 1px solid #d7ccc8;
  border-radius: 8px;
  font-size: 14px;
  color: #5d4037;
  transition: all 0.3s;
}

.register-form-input::placeholder {
  color: #c7b8ae;
}

.register-form-input:focus {
  outline: none;
  border-color: #8b5a2b;
  box-shadow: 0 0 0 2px rgba(139, 90, 43, 0.1);
}

/* 协议勾选区 */
.agreement-section {
  width: 100%;
  max-width: 320px;
  margin-bottom: 20px;
}

.agreement-checkbox {
  color: #8d6e63;
  font-size: 14px;
}

.agreement-checkbox .ant-checkbox-inner {
  border-color: #d7ccc8;
  border-radius: 4px;
}

.agreement-checkbox .ant-checkbox-checked .ant-checkbox-inner {
  background-color: #8b5a2b;
  border-color: #8b5a2b;
}

.agreement-link {
  color: #8b5a2b;
  margin: 0 3px;
  text-decoration: none;
  transition: color 0.3s;
}

.agreement-link:hover {
  color: #6d4c41;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 注册按钮 */
.register-btn {
  width: 100%;
  max-width: 320px;
  height: 48px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(135deg, #8b5a2b, #6d4c41);
  border: none;
  border-radius: 12px;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(139, 90, 43, 0.15);
}

.register-btn:hover {
  background: linear-gradient(135deg, #7a4d26, #5d4037);
  box-shadow: 0 6px 16px rgba(139, 90, 43, 0.2);
  transform: translateY(-2px);
}

/* 已有账号提示 */
.login-hint {
  margin-top: 16px;
  font-size: 14px;
  color: #8d6e63;
}

.login-link {
  color: #8b5a2b;
  text-decoration: none;
  transition: color 0.3s;
}

.login-link:hover {
  color: #6d4c41;
  text-decoration: underline;
}

/* 响应式：小屏幕适配 */
@media (max-width: 375px) {
  .register-header {
    margin-bottom: 16px;
  }

  .avatar-wrapper {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
  }

  .register-title {
    font-size: 22px;
  }

  .register-form-input {
    height: 40px;
    font-size: 13px;
  }

  .register-btn {
    height: 44px;
    font-size: 15px;
    border-radius: 10px;
  }
}